//
//  SubjectTableViewCell.m
//  WE
//
//  Created by apple on 15/11/21.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "SubjectTableViewCell.h"
#import "Size.h"

@implementation SubjectTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(20*Height, 20*Height, 60*Height, 60*Height)];
        self.imageV.layer.cornerRadius = 30*Height;
        self.imageV.layer.masksToBounds = YES;
        [self addSubview:self.imageV];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(100*Height, 20*Height, 50, 20*Height)];
        self.nameLabel.font = FONT(14);
        self.nameLabel.backgroundColor = [UIColor whiteColor];
        self.nameLabel.textColor = [UIColor blackColor];
        [self addSubview:self.nameLabel];
        
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(110*Height + 50, 20*Height, 40, 20*Height)];
        label.text = @"主治医师";
        label.font = FONT(10);
        [self addSubview:label];
        
        UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(120*Height + 90, 20*Height, 20, 20*Height)];
        label1.text = @"号";
        label1.textAlignment = NSTextAlignmentCenter;
        label1.font = FONT(10);
        label1.backgroundColor = [UIColor greenColor];
        label1.textColor = [UIColor whiteColor];
        [self addSubview:label1];
        
        
        self.levelLabel = [[UILabel alloc] initWithFrame:CGRectMake(100*Height, 50*Height, 40, 10*Height)];
        
        [self addSubview:self.levelLabel];
        
        self.numberLabel = [[UILabel alloc] initWithFrame:CGRectMake(120*Height + 40, 50*Height, 80, 10*Height)];
        
        self.numberLabel.textColor = [UIColor blackColor];
        self.numberLabel.font = FONT(10);
        [self addSubview:self.numberLabel];
        
        self.specialityLabel = [[UILabel alloc] initWithFrame:CGRectMake(100*Height, 70*Height, WindowWidth - 110*Height, 10*Height)];
        self.specialityLabel.font = FONT(10);
        [self addSubview:self.specialityLabel];
        
        
    }
    
    return self;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
